package com.wskj.library.dao.impl;

import com.wskj.library.pojo.*;

import com.wskj.library.dao.*;

import java.util.List;

/**
 * fineType dao接口类实现类
 * 2018-03-22 T148
 */ 
public class FineTypeDaoImpl extends BaseDao implements FineTypeDao{

	 @Override
	 public int addFineType(FineType  fineType){
		 String sql="insert into fineType  values  ()";
		 Object[] params= {};
		 return super.executeUpdate(sql, params);
	 }
	 @Override
	 public int deleteById(int id){
		 String sql="delete from fineType  where tid=? ";
		 Object[] params= {id};
		 return super.executeUpdate(sql, params);
	 }
	 @Override
	 public int updateFineType(FineType fineType){
		 String sql="update fineType set ";
		 Object[] params= {};
		 return super.executeUpdate(sql, params);
	 }
	 @Override
	 public FineType getFineTypeById(int id){
		 String sql="select * from fineType where tid=? ";
		 Object[] params= {id};
		 return super.queryOne(sql, params,FineType.class);
	 }
	 @Override
	 public  List<FineType>  getAllFineTypes(){
		 String sql="select * from fineType";
		 Object[] params= null;
		 return super.queryAll(sql, params, FineType.class);
	 }
}

